
package me.ak.sf;

import org.newdawn.slick.geom.Rectangle;


public class Sloth {
    
    public float x,y;
    
    
    
    public float speed;
    
    public Sloth(float x, float y, float speed) {
        this.x = x;
        this.y = y;
        this.speed = speed;
    }
    
    public Rectangle getBounds() {
        return new Rectangle(x,y,100,100);
    }
    
    public void update() {
        this.y += speed;
        if (this.y > 510) {
            SlothfallGameState.sloths.remove(this);
        }
    }

}
